// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-20

package edit

import "server/app/kind"

// Request
// 入参.
type Request struct {
	Id         int                `label:"商品ID"`
	Image      string             `validate:"required" label:"商品图片"`
	Name       string             `validate:"required,min=2,max=30" label:"商品名称"`
	CategoryId kind.GoodsCategory `validate:"required,min=1" label:"商品类别"`
	Unit       kind.GoodsUnit     `validate:"required" label:"商品单位"`
	SalePrice  kind.Balance       `validate:"required,min=0.1,max=9999.9" label:"商品价格"`
}
